﻿<%@ Page Language="C#" MasterPageFile="~/master/AdminLayout.master" AutoEventWireup="true" CodeFile="productdetail.aspx.cs" Inherits="page_private_admin_productdetail" Title="Untitled Page" %>
<%@ Register Src="~/control/common/EmptyGridMessage.ascx" TagPrefix="ucc" TagName="EmptyGridMessage" %>
<%@ Register Assembly="Library" Namespace="Pheonix.CodeLibrary.Web" TagPrefix="ucc" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<%@ Register Assembly="App_Code" Namespace="Pheonix.Fashionzoomer.UI" TagPrefix="ucc" %>

<asp:Content ID="workArea" ContentPlaceHolderID="WorkArea" Runat="Server">
    <table style="margin-left:auto; margin-right:auto;" >
        <tr>
            <td>
                <ucc:ResponseMessage ID="uccResponseMessage" runat="server" ></ucc:ResponseMessage>
            </td>
        </tr>
        <tr>
            <td>
                <br />
                <asp:ValidationSummary ID="vlsShopDetail" runat="server" DisplayMode="BulletList" 
                    HeaderText="Please correct the following errors" CssClass="adminValidator" 
                    ValidationGroup="productInfo" />
                <br />
            </td>
        </tr>
        <tr>
            <td>
                <h5><asp:Label ID="lblTitle" runat="server"></asp:Label></h5>
            </td>
        </tr>
        <tr>
            <td align="left" valign="middle">
               <table cellspacing="10" width="600px">
                    <tr>
                        <td class="adminTitleText">Product Name</td>
                        <td>
                            <asp:TextBox ID="tbxProductName" runat="server" CssClass="adminTextBox" ></asp:TextBox>
                            <asp:RequiredFieldValidator ID="rqvProductName" runat="server" Display="Dynamic"
                                ErrorMessage="Product name is required" Text="*" ControlToValidate="tbxProductName"
                                 SetFocusOnError="true" ValidationGroup="productInfo">
                            </asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="adminTitleText" colspan="2">
                            Product Description<br /><br />
                            <FCKeditorV2:FCKeditor ID="fckProductDescription" runat="server" Width="100%" Height="400px" 
                                AutoDetectLanguage="true" DefaultLanguage="aspx" BasePath="~/thirdparty/fckeditor/"
                                FullPage="false" HtmlEncodeOutput="true" UseBROnCarriageReturn="true" ToolbarSet="Custom" >
                            </FCKeditorV2:FCKeditor>
                        </td>
                    </tr>
                    <tr>
                        <td class="adminTitleText">Product For</td>
                        <td>
                            <asp:DropDownList ID="ddlForMale" runat="server" 
                                FirstItemText="Select" FirstItemValue="-1" CssClass="adminDropDownList">
                                <asp:ListItem Text="Select" Value="-1"></asp:ListItem>
                                <asp:ListItem Text="Male" Value="True"></asp:ListItem>
                                <asp:ListItem Text="Female" Value="False"></asp:ListItem>
                            </asp:DropDownList>
                            <asp:RequiredFieldValidator ID="rqvForMale" runat="server" Display="dynamic"
                                ErrorMessage="Select product for whom" ControlToValidate="ddlForMale" InitialValue="-1" 
                                ValidationGroup="productInfo" Text="*">
                            </asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="adminTitleText">Shop</td>
                        <td>
                            <asp:DropDownList ID="ndlShop" runat="server" CssClass="adminDropDownList"
                                AppendDataBoundItems="true" AutoPostBack="true"
                                DataTextField="shop_name" DataValueField="id"
                                OnSelectedIndexChanged="Shop_Change">
                                <asp:ListItem Text="Select" Value="-1"></asp:ListItem>
                            </asp:DropDownList>
                            <asp:RequiredFieldValidator ID="rqvShop" runat="server" Display="dynamic"
                                ErrorMessage="Select a shop" ControlToValidate="ndlShop" InitialValue="-1" 
                                ValidationGroup="productInfo" Text="*">
                            </asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="adminTitleText">Category</td>
                        <td>
                            <ucc:NullableDropDownList ID="ndlCategory" runat="server" CssClass="adminDropDownList"
                                FirstItemText="Select" FirstItemValue="-1" 
                                DataTextField="category_name" DataValueField="category_id">
                            </ucc:NullableDropDownList>
                            <asp:RequiredFieldValidator ID="rqvCategoryId" runat="server" Display="dynamic"
                                ErrorMessage="Please Select a Category" ControlToValidate="ndlCategory" InitialValue="-1" 
                                ValidationGroup="productInfo" Text="*">
                            </asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="adminTitleText">Featured</td>
                        <td>
                            <asp:CheckBox ID="cbxIsFeatured" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td class="adminTitleText">Product Primary Image</td>
                        <td>
                            <asp:Image ID="imgDefaultImage" runat="server" AlternateText="Primary Image"  /><br /><br />
                            <asp:FileUpload ID="fluDefaultImage" runat="server" Width="350px" size="40px;"	 />
                        </td>
                    </tr>
                    <tr>
                        <td class="adminTitleText">Product Code</td>
                        <td>
                            <asp:Label ID="lblProductCode" runat="server" ></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="adminTitleText">Minimum Price</td>
                        <td>
                            <asp:TextBox ID="tbxPriceLow" runat="server" CssClass="adminTextBox"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="priceLowRequired" runat="server" Display="dynamic"
                                ErrorMessage="Please enter minimum price" ControlToValidate="tbxPriceLow" 
                                ValidationGroup="productInfo" Text="*">
                            </asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="adminTitleText">Maximum Price</td>
                        <td>
                            <asp:TextBox ID="tbxPriceHigh" runat="server" CssClass="adminTextBox" ></asp:TextBox>
                            <asp:RequiredFieldValidator ID="rqvPriceHigh" runat="server" Display="dynamic"
                                ErrorMessage="Please enter maximum price" ControlToValidate="tbxPriceHigh" 
                                ValidationGroup="productInfo" Text="*">
                            </asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="adminTitleText">Item in stock</td>
                        <td>
                            <asp:TextBox ID="tbxStockAmount" runat="server" CssClass="adminTextBox" ></asp:TextBox>
                            <asp:RequiredFieldValidator ID="rqvStockAmount" runat="server" Display="dynamic"
                                ErrorMessage="Please enter item in stock" ControlToValidate="tbxStockAmount" 
                                ValidationGroup="productInfo" Text="*">
                            </asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="adminTitleText">Available From</td>
                        <td>
                            <asp:TextBox ID="tbxAvailableFrom" runat="server" CssClass="adminTextBox"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="rqvAvailableFrom" runat="server" Display="dynamic"
                                ErrorMessage="Required" ControlToValidate="tbxAvailableFrom" Text="*"
                                ValidationGroup="productInfo">
                            </asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="adminTitleText" colspan="2">
                            Special Offer<br /><br />
                            <FCKeditorV2:FCKeditor ID="fckSpecialOffer" runat="server" Width="100%" Height="400px" 
                                AutoDetectLanguage="true" DefaultLanguage="aspx" BasePath="~/thirdparty/fckeditor/"
                                FullPage="false" HtmlEncodeOutput="true" UseBROnCarriageReturn="true" ToolbarSet="Custom" >
                            </FCKeditorV2:FCKeditor>
                        </td>
                    </tr>
                    <tr>
                        <td class="adminTitleText">Priority</td>
                        <td>
                            <asp:TextBox ID="tbxPriority" runat="server" Text="0" CssClass="adminTextBox"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="adminTitleText">Keywords</td>
                        <td>
                            <asp:TextBox ID="tbxKeywords" runat="server" CssClass="adminTextBox"></asp:TextBox>
                            <br />
                            <i>(Keywords should be seperated by comma)</i>
                        </td>
                    </tr>
                    <tr>
                        <td>&nbsp;</td>
                        <td>
                            <asp:ImageButton ID="btnBack" runat="server" Text="Back" OnClick="Back_Click" 
                                CausesValidation="false" SkinID="FormBackButton" />
                            &nbsp;&nbsp;
                            <asp:ImageButton ID="btnSave" runat="server" Text="Save" OnClick="Save_Click" 
                                SkinID="FormSaveButton" ValidationGroup="productInfo"/>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</asp:Content>

